package routers

import (
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/context/param"
)

func init() {

	beego.GlobalControllerRouter["getshop/controllers/admin:Admin"] = append(beego.GlobalControllerRouter["getshop/controllers/admin:Admin"],
		beego.ControllerComments{
			Method:           "Add",
			Router:           `/add`,
			AllowHTTPMethods: []string{"post"},
			MethodParams:     param.Make(),
			Filters:          nil,
			Params:           nil})

	beego.GlobalControllerRouter["getshop/controllers/admin:Admin"] = append(beego.GlobalControllerRouter["getshop/controllers/admin:Admin"],
		beego.ControllerComments{
			Method:           "GetList",
			Router:           `/get-list`,
			AllowHTTPMethods: []string{"post"},
			MethodParams:     param.Make(),
			Filters:          nil,
			Params:           nil})

	beego.GlobalControllerRouter["getshop/controllers/admin:Admin"] = append(beego.GlobalControllerRouter["getshop/controllers/admin:Admin"],
		beego.ControllerComments{
			Method:           "SetStatus",
			Router:           `/set-status`,
			AllowHTTPMethods: []string{"post"},
			MethodParams:     param.Make(),
			Filters:          nil,
			Params:           nil})

	beego.GlobalControllerRouter["getshop/controllers/admin:Auth"] = append(beego.GlobalControllerRouter["getshop/controllers/admin:Auth"],
		beego.ControllerComments{
			Method:           "Login",
			Router:           `/login`,
			AllowHTTPMethods: []string{"post"},
			MethodParams:     param.Make(),
			Filters:          nil,
			Params:           nil})

	beego.GlobalControllerRouter["getshop/controllers/admin:Auth"] = append(beego.GlobalControllerRouter["getshop/controllers/admin:Auth"],
		beego.ControllerComments{
			Method:           "Logout",
			Router:           `/logout`,
			AllowHTTPMethods: []string{"post"},
			MethodParams:     param.Make(),
			Filters:          nil,
			Params:           nil})

}
